<?php 

namespace Acme\ContestBundle\Form\CustomFieldType;
 
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class ContestApplyStateType extends AbstractType
{
	public function getParent(array $options)
	{
		return 'choice';
	}
	
    private $contestApplyStateChoices;

    public function __construct(array $contestApplyStateChoices)
    {
        $this->contestApplyStateChoices = $contestApplyStateChoices;
    }

    public function getDefaultOptions(array $options)
    {
        return array(
				'choices' => $this->contestApplyStateChoices,
        		'label' => '申请状态',
        		'empty_value' => '请选择',
        );
    }

    public function getName()
    {
    	return 'contest_apply_state';
    }
	
}